package com.yumi.common;

/**
 * 状态码常量
 */
public class StatusConstant {
    // 成功状态码
    public static final Integer SUCCESS = 200;
    
    // 错误状态码
    public static final Integer ERROR = 500;
    
    // 未授权状态码
    public static final Integer UNAUTHORIZED = 401;
    
    // 禁止访问状态码
    public static final Integer FORBIDDEN = 403;
    
    // 参数错误状态码
    public static final Integer PARAM_ERROR = 400;
    
    // 资源不存在状态码
    public static final Integer NOT_FOUND = 404;
    
    // 业务状态码
    public static final Integer BUSINESS_ERROR = 1001;
    
    // 数据验证状态码
    public static final Integer VALIDATE_ERROR = 1002;
    
    // 数据已存在状态码
    public static final Integer DATA_EXISTED = 1003;
} 